#!/user/bin/env python3
# -*- coding: utf-8 -*-
"""
--------------------------------------
    Author:     JiChao_Song
    Date  :     2021/12/18 13:13
    Desc  :
--------------------------------------
"""
from django.db import models
from apps import AbstractBaseModel


class OperateLog(AbstractBaseModel):
    """
    操作对象日志表
    """

    content = models.CharField(max_length = 2000, null = True, blank = True, help_text = '操作内容')
    model = models.CharField(max_length = 50, help_text = '操作的对象')
    type = models.IntegerField(help_text = '操作类型')

    class Meta:
        verbose_name = '对象操作日志'
        verbose_name_plural = verbose_name
        db_table = 'tOperateLog'
        ordering = ['-createTime']


